package com.phiture.erp.finance.core.pojo.vo;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;

@Schema(description = "管理后台 - 对账单 Response VO")
@Data
@ExcelIgnoreUnannotated
public class ErpFinanceStatementRespVO {

    @Schema(description = "ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "18388")
    @ExcelProperty("ID")
    private Long id;

    @Schema(description = "对账单号")
    @ExcelProperty("对账单号")
    private String no;

    @Schema(description = "交易用户")
    @ExcelProperty("交易用户")
    private String transactionUserName;

    @Schema(description = "交易用户ID")
    @ExcelProperty("交易用户ID")
    private Long transactionUserId;

    @Schema(description = "类型", example = "2")
    @ExcelProperty("类型")
    private Integer type;

    @Schema(description = "对账周期", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("对账周期")
    private String billingPeriod;

    @Schema(description = "生成日期")
    @ExcelProperty("生成日期")
    private LocalDateTime statementDate;

    @Schema(description = "总金额（含税）")
    @ExcelProperty("总金额（含税）")
    private BigDecimal totalAmount;

    @Schema(description = "已付金额")
    @ExcelProperty("已付金额")
    private BigDecimal transactionAmount;

    @Schema(description = "状态", example = "2")
    @ExcelProperty("状态")
    private Integer status;

    @Schema(description = "创建时间")
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

}